package com.example.understand_compose1.testcase_activity

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.fragment.app.FragmentActivity
import com.bumptech.glide.Glide
import com.example.understand_compose1.R
import com.example.understand_compose1.databinding.ActivityFetCircleImageViewBinding
import com.example.understand_compose1.testcase_data.const_net_resource.caseImg

class FetCircleImageViewActivity : FragmentActivity() {
    lateinit var binding: ActivityFetCircleImageViewBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        binding = ActivityFetCircleImageViewBinding.inflate(layoutInflater)
        enableEdgeToEdge()
        setContentView(binding.root)


        ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
            val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
            insets
        }

        Glide.with(this)
            .load(caseImg)
            .into(binding.civ1)
    }
}